﻿





function CallHandlerSync(inputUrl, inputdata) {
    $.ajax({
        url: inputUrl,
        contentType: "application/json; charset=utf-8",
        data: inputdata,
        async: false,
        success: function(result) {
            var objResult = $.parseJSON(result);
            alert(objResult.Total);
        },
         error: function (jqXHR, textStatus, errorThrown) {
                    if (jqXHR.status == 500) {
                        alert('Internal error: ' + jqXHR.responseText);
                    } else {
                        alert('Unexpected error.' + errorThrown);
                    }
                }
    });
}
